package com.sy.easycms.dwr;

import java.sql.SQLException;

import com.sy.easycms.bo.TagBO;
import com.sy.easycms.orm.Tag;

public class TagAjaxSupport {

	public TagAjaxSupport() {
	}
	
	TagBO bo = new TagBO();
	
	/**
	 * 添加标签
	 * @param tag
	 * @return
	 */
	public String addTag(String tag)
	{
		Tag instance = new Tag();
		instance.setTag(tag);
		try{
			bo.addTag(instance);
		}catch(SQLException e)
		{
			return e.getMessage();
		}
		return "添加成功!";
	}
}
